-- GENERATED SPELL FOR [Snow Leopard] --


function spell0_1201(pUnit, Event) --@Claw,n/a--
pUnit:FullCastSpellOnTarget(16828,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1201', 639, 1)
end

function spell1_1201(pUnit, Event) --@Cower,n/a--
pUnit:FullCastSpellOnTarget(1742,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1201', 0, 1)
end

function spell2_1201(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(2649,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1201', 0, 1)
end

function spell3_1201(pUnit, Event) --@Growl,n/a--
pUnit:FullCastSpellOnTarget(14916,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1201', 0, 1)
end

function spell4_1201(pUnit, Event) --@Prowl,Self--
pUnit:FullCastSpellOnTarget(24450,pUnit)
pUnit:RegisterEvent('Sorts_1201', 0, 1)
end

function spell5_1201(pUnit, Event) --@Rake,n/a--
pUnit:FullCastSpellOnTarget(59881,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_1201', 9000, 1)
end

function Sorts_1201(pUnit, Event)
local choix_sorts_1201 = math.random(0, 5)
if choix_sorts_1201 == 0 then
pUnit:RegisterEvent('spell0_1201', 1, 1)
end
if choix_sorts_1201 == 1 then
pUnit:RegisterEvent('spell1_1201', 1, 1)
end
if choix_sorts_1201 == 2 then
pUnit:RegisterEvent('spell2_1201', 1, 1)
end
if choix_sorts_1201 == 3 then
pUnit:RegisterEvent('spell3_1201', 1, 1)
end
if choix_sorts_1201 == 4 then
pUnit:RegisterEvent('spell4_1201', 1, 1)
end
if choix_sorts_1201 == 5 then
pUnit:RegisterEvent('spell5_1201', 1, 1)
end
end

function mob1201_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_1201', math.random(1500, 3000), 1)
end

function mob1201_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1201_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob1201_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(1201, 1, 'mob1201_Action')
RegisterUnitEvent(1201, 2, 'mob1201_Leave')
RegisterUnitEvent(1201, 3, 'mob1201_Kill')
RegisterUnitEvent(1201, 4, 'mob1201_Die')
